<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8" />
    <title>5-5 PHP中的三元运算符</title>
</head>
<body>
<div align="center">
    <p><a href="index.php"><font size="4">目录</font></a></p>
    <?php
    $a = 78; //成绩
    $b = $a >= 60?"及格":"不及格";
    echo "本次成绩是：".$b;
    ?>

    <!--总结：

     -->
</div>
</body>
</html>